package com.lg.elastic_job.job;

import com.dangdang.ddframe.job.api.ShardingContext;
import com.dangdang.ddframe.job.api.simple.SimpleJob;

/**
 * elastic-job 的 simple 任务
 *
 * @author by Mr. Li 2020/11/20 10:09
 */
public class MySimpleJob implements SimpleJob {
    @Override
    public void execute(ShardingContext shardingContext) {

        System.out.printf("当前分片为：%d%n", shardingContext.getJobName());

    }
}
